import request from '@/utils/request'
 /*
  获取岗位列表
  */
  export function getPostList(queryPostVO) {
    return request({
      url: '/sysPost/getPostList/',
      method: 'get',
      params:queryPostVO
    })
  }

   /*
  获取全部岗位列表
  */
  export function getAllPosts() {
    return request({
      url: '/sysPost/getAllPosts',
      method: 'get'
    })
  }


  /*
  增加岗位
  */
  export function addPost(data) {
    return request({
      url: '/sysPost/addPost/',
      method: 'post',
      data:data
    })
  }

  /*
  修改岗位
  */
  export function updatePost(data) {
    return request({
      url: '/sysPost/updatePost/',
      method: 'put',
      data:data
    })
  }

    /*
  获得岗位信息
  */
  export function getPostById(postId) {
    return request({
      url: '/sysPost/getPostById/'+postId,
      method: 'get'
    })
  }

    /*
  删除岗位
  */
  export function deletePostById(postId) {
    return request({
      url: '/sysPost/deletePostById/'+postId,
      method: 'delete'
    })
  }

  /*
  删除岗位
  */
  export function batchDeletePost(postIds) {
    return request({
      url: '/sysPost/batchDeletePost/'+postIds,
      method: 'delete'

    })
  }